package com.linkage.lcims.base.service.system.impl;

import java.util.List;

import com.linkage.lcims.base.dao.system.interfaces.ColumndeDAO;
import com.linkage.lcims.base.memoryparam.ValueBean;
import com.linkage.lcims.base.memoryparam.interfaces.ColumndeMP;
import com.linkage.lcims.base.po.system.MdColumnde;
import com.linkage.lcims.base.service.system.interfaces.AdminLogBO;
import com.linkage.lcims.base.service.system.interfaces.ColumnDescBaseBO;
import com.linkage.util.exception.DAOException;
import com.linkage.util.exception.ServiceException;

public class ColumnDescBaseBOImpl implements ColumnDescBaseBO {

	private String message;
	protected ColumndeDAO columndeDAO;
	protected AdminLogBO adminLogBO;
	protected ColumndeMP columndeMP;
	
	
	public List<MdColumnde> getAll() throws ServiceException {
		try {
			return columndeDAO.getAll();
		} catch (DAOException e) {
			throw new ServiceException(e);
		}
	}

	public List<ValueBean> getColumnDesc(String tableName, String columnName)
			throws ServiceException {
		try {
			return columndeMP.getColumnDesc(tableName, columnName);
		} catch (Exception e) {
			throw new ServiceException(e);
		}
	}


	public String getValue(String tableName, String columnName, String id)
			throws ServiceException {
		try {
			return columndeMP.getValue(tableName, columnName, id);
		} catch (Exception e) {
			throw new ServiceException(e);
		}
	}

	public void setMessage(String message) {
		this.message = message;
	}
	public String getMessage() {
		// TODO Auto-generated method stub
		return message;
	}

	public ColumndeDAO getColumndeDAO() {
		return columndeDAO;
	}

	public void setColumndeDAO(ColumndeDAO columndeDAO) {
		this.columndeDAO = columndeDAO;
	}

	public AdminLogBO getAdminLogBO() {
		return adminLogBO;
	}

	public void setAdminLogBO(AdminLogBO adminLogBO) {
		this.adminLogBO = adminLogBO;
	}

	public ColumndeMP getColumndeMP() {
		return columndeMP;
	}

	public void setColumndeMP(ColumndeMP columndeMP) {
		this.columndeMP = columndeMP;
	}

}
